package com.github.llyb120.sxmanage;

import lombok.Synchronized;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * @Author: Administrator
 * @Date: 2020/12/24 14:18
 */
@EnableScheduling
@Configuration
public class TaskService {


    @Scheduled(fixedRate = 24 * 3600000)
    public void task(){
        LoginController.tokens.clear();
    }
}
